﻿<%@ Page Title="" Language="C#" MasterPageFile="~/CustomerMaster.master" AutoEventWireup="true" CodeBehind="IndexCustomerHistoryOfOrder.aspx.cs" Inherits="EHTSaleManager.IndexCustomerHistoryOfOrder" %>
<%@ Register Src="~/UIAdmin/Control/PaggingControl.ascx" TagName="PaggingControl"
    TagPrefix="EHT" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  <div align="left" style="padding:20px">
    <h1>
        <asp:Label ID="lbCustomerHistoryOfOrder" runat="server" Text="History Of Order"></asp:Label>
    </h1>
  </div>
    <table style="width: 100%; height: 50px;">
        <tr>
            <td>
                <asp:HyperLink ID="hlOrderAppending" NavigateUrl="~/IndexCustomerHistoryOfOrder.aspx?OrderState=1"
                    runat="server">Orders Appending</asp:HyperLink>
            </td>
            <td style="text-align: right; padding-right: 10px">
                <asp:HyperLink ID="hlOrderAll" NavigateUrl="~/IndexCustomerHistoryOfOrder.aspx?OrderState=-1"
                    runat="server">All Orders</asp:HyperLink>
            </td>
        </tr>
    </table>
    <asp:Repeater ID="rpOrders" runat="server">
        <HeaderTemplate>
            <table cellspacing="0" cellpadding="0" class="data-table">
                <thead>
                    <tr>
                        <th >
                            NO
                        </th>
                        <th >
                            Edit
                        </th>
                        <th>
                            Full Name
                        </th>
                        <th>
                            Address
                        </th>
                        <th>
                            Phone
                        </th>
                        <th>
                            Created Date
                        </th>
                        <th>
                            Require Date
                        </th>
                    </tr>
                </thead>
                <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td class="actions edit">
                    <%#Eval("IndexId")%>
                </td>
                <td class="actions edit">
                    <a href='CustomerEditOrder.aspx?OrderID=<%#Eval("OrderID")%>'>
                        <img alt="Edit" src="../Styles/Edit.png" height="16px" width="16px" /></a>
                </td>
                <th>
                    <%#Eval("ReceivedName")%>
                </th>
                <td>
                    <%#Eval("ReceivedAddress")%>,&nbsp<%#Eval("ReceivedCity")%>
                </td>
                <td>
                    <%#Eval("ReceicedPhone")%>
                </td>
                <td>
                    <%#Eval("CreatedDate")%>
                </td>
                <td>
                    <%#Eval("RequireDate")%>
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </tbody> </table>
        </FooterTemplate>
    </asp:Repeater>
    <p>
        <EHT:PaggingControl ID="PaggingControl1" runat="server" PageURL="IndexCustomerHistoryOfOrder.aspx"
            PageSize="10" />
    </p>
</asp:Content>
